package com.mcf.xiaolinju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mcf
 * @since 2022-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 小区id
     */
    private Integer villageid;

    /**
     * 产品分类id
     */
    private Integer classifyid;

    /**
     * 产品名字
     */
    private String name;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 型号
     */
    private String type;

    /**
     * 新旧程度
     */
    private String extent;

    /**
     * 商品图片
     */
    private String pictureurl;

    /**
     * 购买渠道
     */
    private String channel;

    /**
     * 其他描述
     */
    private String content;

    /**
     * 购买日期
     */
    private LocalDate buytime;

    /**
     * 出售价格
     */
    private Double price;

    /**
     * 购买时的价格
     */
    private Double priced;

    /**
     * 发布时间
     */
    private LocalDateTime createtime;

    /**
     * 状态：0：未删除 ； 1：删除 ； 2：待审核；3：未通过
     */
    private Integer state;

    /**
     * 审核人id
     */
    private Integer auditid;

    /**
     * 审核时间
     */
    private LocalDateTime auditime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getVillageid() {
        return villageid;
    }

    public void setVillageid(Integer villageid) {
        this.villageid = villageid;
    }

    public Integer getClassifyid() {
        return classifyid;
    }

    public void setClassifyid(Integer classifyid) {
        this.classifyid = classifyid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExtent() {
        return extent;
    }

    public void setExtent(String extent) {
        this.extent = extent;
    }

    public String getPictureurl() {
        return pictureurl;
    }

    public void setPictureurl(String pictureurl) {
        this.pictureurl = pictureurl;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDate getBuytime() {
        return buytime;
    }

    public void setBuytime(LocalDate buytime) {
        this.buytime = buytime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPriced() {
        return priced;
    }

    public void setPriced(Double priced) {
        this.priced = priced;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getAuditid() {
        return auditid;
    }

    public void setAuditid(Integer auditid) {
        this.auditid = auditid;
    }

    public LocalDateTime getAuditime() {
        return auditime;
    }

    public void setAuditime(LocalDateTime auditime) {
        this.auditime = auditime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", userid=" + userid +
                ", villageid=" + villageid +
                ", classifyid=" + classifyid +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", brand='" + brand + '\'' +
                ", type='" + type + '\'' +
                ", extent='" + extent + '\'' +
                ", pictureurl='" + pictureurl + '\'' +
                ", channel='" + channel + '\'' +
                ", content='" + content + '\'' +
                ", buytime=" + buytime +
                ", price=" + price +
                ", priced=" + priced +
                ", createtime=" + createtime +
                ", state=" + state +
                ", auditid=" + auditid +
                ", auditime=" + auditime +
                '}';
    }
}
